/* 影视详情页样式 */

.movie-detail-container {
    padding: 20px 0;
    max-width: 1200px; /* 更宽的布局 */
    margin: 0 auto;
}

.back-to-list {
    margin-bottom: 20px;
}

.back-to-list a {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.back-to-list a:hover {
    color: var(--primary-color);
}

.back-to-list i {
    margin-right: 8px;
}

/* 影片信息区域 */
.movie-info-section {
    display: flex;
    margin-bottom: 40px;
    gap: 30px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.movie-poster-large {
    position: relative;
    flex: 0 0 300px;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.movie-poster-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-poster-large:hover img {
    transform: scale(1.03);
}

.movie-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.movie-details {
    flex: 1;
}

.movie-details .movie-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.movie-meta-info {
    margin-bottom: 30px;
}

.movie-meta-info p {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-color);
    display: flex;
}

.movie-meta-info p span {
    font-weight: bold;
    color: var(--text-light);
    width: 60px;
    flex-shrink: 0;
}

.movie-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.movie-description p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

/* 播放区域 */
.movie-play-section {
    margin-bottom: 40px;
    max-width: 1400px; /* 更宽的播放区域 */
    width: 100%;
}

.movie-play-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.player-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    position: relative;
    background-color: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* 播放错误和直接链接样式 */
.play-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.7);
}

.direct-link-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    text-align: center;
}

.direct-link-info {
    color: white;
    font-size: 14px;
}

.direct-link {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.direct-link:hover {
    background-color: #e05a5a;
}

.small-tip {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

.episode-list {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.episode-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-item {
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.episode-item:hover, .episode-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-episodes {
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
}

/* 相关影片区域 */
.related-movies {
    margin-bottom: 40px;
}

.related-movies h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.no-related {
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .movie-detail-container {
        max-width: 100%;
        padding: 10px 10px;
    }
    
    .player-container {
        padding-bottom: 56.25%; /* 保持16:9的比例 */
    }
}

@media (max-width: 768px) {
    .movie-info-section {
        flex-direction: column;
        padding: 20px;
    }
    
    .movie-poster-large {
        flex: 0 0 auto;
        height: auto;
        aspect-ratio: 2/3;
        max-width: 250px;
        margin: 0 auto 20px;
    }
    
    .movie-details .movie-title {
        font-size: 24px;
        text-align: center;
    }
    
    .movie-meta-info {
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .episode-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .movie-play-section h2,
    .related-movies h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .movie-meta-info p {
        font-size: 14px;
    }
    
    .movie-description p {
        font-size: 14px;
    }
    
    .episode-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .movie-info-section {
        padding: 15px;
    }
    
    .episodes {
        gap: 8px;
    }
    
    .movie-play-section h2,
    .related-movies h2 {
        font-size: 18px;
    }
} 